Enter.inherit("Control");



function Enter(node){
	this.Control(node);
	this.textBox=this.properties.getObject("textBox");	
	this.popupButton=this.properties.getObject("popupButton");
}
/*
function Enter(textBox, popupButton){
	this.Control(node);
	this.textBox=textBox;	
	this.popupButton=popupButton;
	
}
*/
Enter.prototype.getTextBox=function () {
	return this.textBox;
}	
						
Enter.prototype.getPopupButton=function () {
	return this.popupButton;
}	

Enter.prototype.getEventHandler=function () {
	return this.textBox.getEventHandler();
}

Enter.prototype.getValue=function () {
	return this.textBox.getValue();
}

Enter.prototype.clear=function () {
	this.textBox.clear();
	this.popupButton.clear();	
}

Enter.prototype.toString=function () {
	return this.textBox.toString();
}

Enter.prototype.setEnabled=function (txtEnabled, btnEnabled) {
	this.textBox.setEnabled(txtEnabled);
	this.popupButton.setEnabled(btnEnabled);
}

/*
Enter.prototype.populatePopupParameters=function (prefix, parameters) {
	parameters.add(prefix+".text", this.textBox.getText());
//	parameters.add(prefix+".id", this.popupButton.getId());	
}
*/
Enter.prototype.populate=function (prefix, results) {
	this.textBox.setText(results.getValue(prefix+".text"));
//	this.popupButton.setId(results.getValue(prefix+".id"));	
}
